import request from '@/utils/request'
export function list(page,size){
	return request({
		url: '/contract/list',
		method: 'post',
		params:{
			page: page,
			size: size
		}
	})
}

export function update(data){
	return request({
		url: '/contract/update',
		method: 'post',
		data
	})
}

export function del(data){
	return request({
		url: '/contract/delete',
		method: 'post',
		data
	})
}

export function search(formline,pageSize,currentPage){
	return request({
		url: '/contract/search',
		method:'post',
		data:{
			condiction: formline,
			size: pageSize,
			page: currentPage
		}
	})
}

export function listcontractstatusoptions(){
	return {
		"1": "生效",
		"2": "失效"
	}
}
export function listcontractalertoptions(){
	return {
		"1": "告警",
		"2": "不告警"
	}
}